<%@ page contentType="text/html;charset=UTF-8" %>

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <meta name="layout" content="main" />
        <title>产品售出情况</title>
    </head>
    <body>
        <div class="nav">
            <span class="menuButton"><g:link class="create" action="create">新的进货</g:link></span>
        </div>
        <div class="body">
            <h1>产品售出情况</h1>
            <br>
            <div class="list">
                <table>
                    <thead>
                        <tr>

                            <g:sortableColumn property="number" title="进货序号" />

                            <g:sortableColumn property="amount" title="进货数量" />
                            
                            <g:sortableColumn property="remain" title="剩余数量" />

                        </tr>
                    </thead>
                    <tbody>
                        <g:each in="${sellProductList}" status="i" var="productInstance">

                            <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">

                                <td>${productInstance.number}</td>

                                <td>${productInstance.amount}</td>

                                <td>${productInstance.remain}</td>

                            </tr>

                        </g:each>
                    </tbody>
                </table>
            </div>
            <div class="paginateButtons">
                <g:paginate total="${sellProductList?.count()}"/>
            </div>
        </div>
    </body>
</html>
